# coding=utf-8
from framework.base_page import BasePage

class InquiryListPage(BasePage):
    btn_add_inquiry = "xpath=>//*[@id='root']/div/div/div/div[2]/div[1]/div[2]/button"
    btn_all = ""
    btn_unpublish = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[1]/div/label[2]/span[2]"
    btn_inquiring = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[1]/div/label[3]/span[2]"
    btn_appointed = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[1]/div/label[4]/span[2]"
    btn_closed = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[1]/div/label[5]/span[2]"
    btn_sort = "xpath=>//*[@id='orderBy']/div/div"
    btn_sort_shiptime = "xpath=>//*[@id='c2192f03-44fb-4350-dd1c-a2ed9bf18bfd']/ul/li[1]"
    btn_sort_createtime = "xpath=>//*[@id='c2192f03-44fb-4350-dd1c-a2ed9bf18bfd']/ul/li[2]"
<<<<<<< HEAD
    btn_advanced_search = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[2]/div/form/div[1]/div/div[2]/div/div[1]/a"
=======
    btn_advance_search = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[2]/div/form/div[1]/div/div[2]/div/div[1]/a"
>>>>>>> d932c4b2bd4979a7a40e02129a0d09bfc3061eeb
    btn_ship ="xpath=>//*[@id='ship']/div/div/div[1]"
    btn_ETA = "xpath=>"
    btn_service_type = "xpath=>//*[@id='type']/div/div/div[1]"
    btn_terminal = "xpath=>//*[@id='port']/div/div/div[1]"
    btn_inquiry_number = "xpath=>//*[@id='orderNumber']/div/div/div[1]"
    btn_reset = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[2]/div/form/div[2]/div[2]/div/div/div[1]/button[1]"
<<<<<<< HEAD
    btn_search = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[2]/div/form/div[1]/div/div[2]/div/div[1]/button[2]"
=======
    btn_search = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[2]/div/form/div[2]/div[2]/div/div/div[1]/button[2]"
>>>>>>> d932c4b2bd4979a7a40e02129a0d09bfc3061eeb
    btn_hide = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[2]/div/form/div[2]/div[2]/div/div/div[1]/a"
    input_ship_name = "xpath=>//input[@id='ship']"
    choose_ship = "xpath=>//*[@id='ship']/div/div/div[1]/ul/li[1]"
    input_service_type = "xpath=>//input[@id='type']"
    input_terminal = "xpath=>//input[@id='port']"
    input_inquiry_number = "xpath=>"
    btn_inquiry_detail = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[3]/div/div[1]/div[1]"

<<<<<<< HEAD
    # btn_Advanced_search = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[2]/div/form/div[1]/div/div[2]/div/div[1]/a"
    # btn_Hide = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[2]/div/form/div[2]/div[2]/div/div/div[1]/a"
    # btn_search_orderNo = "xpath=>//*[@id='orderNumber']/div/div/div[1]"
    dropDown_search_orderNo = "xpath=>//input[@id='orderNumber']"
    btn_inquir = "xpath=>//*[@id='root']/div/div/div/div[2]/div[2]/div/div[3]/div/div[1]/div/div[1]"
=======
>>>>>>> d932c4b2bd4979a7a40e02129a0d09bfc3061eeb


    def click_add_inquiry(self):
        self.click(self.btn_add_inquiry)
        self.sleep(2)

    def click_all(self):
        self.click(self.btn_all)
        self.sleep(2)

    def click_unpublish(self):
        self.click(self.btn_unpublish)
        self.sleep(2)

    def click_inquiring(self):
        self.click(self.btn_inquiring)
        self.sleep(2)

    def click_appointed(self):
        self.click(self.btn_appointed)
        self.sleep(2)

    def click_closed(self):
        self.click(self.btn_closed)
        self.sleep(2)

    def click_sort(self):
        self.click(self.btn_sort)
        self.sleep(2)

    def click_createtime(self):
        self.click(self.btn_sort_createtime)
        self.sleep(2)

    def click_shiptime(self):
        self.click(self.btn_sort_shiptime)
        self.sleep(2)

    def click_ship_search(self):
        self.click(self.btn_ship)
<<<<<<< HEAD
        self.sleep(2)
=======
>>>>>>> d932c4b2bd4979a7a40e02129a0d09bfc3061eeb

    def in_ship_name(self,text):
        self.type(self.input_ship_name,text)
        self.sleep(2)

    def click_choose_ship(self):
        self.click(self.choose_ship)
<<<<<<< HEAD
        self.sleep(2)
=======
>>>>>>> d932c4b2bd4979a7a40e02129a0d09bfc3061eeb

    def click_search(self):
        self.click(self.btn_search)
        self.sleep(3)

    def click_advance_search(self):
        self.click(self.btn_advance_search)
        self.sleep(1)

    def click_service_type(self):
        self.click(self.btn_service_type)
        self.sleep(2)

    def in_service_type(self,text):
        self.type(self.input_service_type , text)
        self.sleep(2)


    def click_inquiry_details(self):
        self.click(self.btn_inquiry_detail)
        self.sleep(2)
<<<<<<< HEAD

    def click_inquiry_number(self):
        self.click(self.btn_inquiry_number)
        self.sleep(2)

    def click_Advanced_search(self):
        self.click(self.btn_advanced_search)
        self.sleep(2)

    def click_Hide(self):
        self.click(self.btn_hide)
        self.sleep(2)

    def click_search(self):
        self.click(self.btn_search)
        self.sleep(2)

    def dropDownType_search_orderNo(self,text):
        self.dropDownType(self.dropDown_search_orderNo,text)
        self.sleep(2)

    def click_inquir(self):
        self.click(self.btn_inquir)
        self.sleep(2)

=======
>>>>>>> d932c4b2bd4979a7a40e02129a0d09bfc3061eeb
